import React from 'react';

export default class Stu extends React.Component {
  render() {
    //输出 props 属性的值
    //获取 props 中的数据
    let {name, age, hobby} = this.props;
    return <div className="slider">
      <p>姓名: {name}</p>
      <p>年龄: {age}</p>
      <p>爱好: {hobby.join('-')}</p>
      <hr  />
    </div>;
  }
}